<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="VotingsCreateDlg" widgetVar="VotingsCreateDialog" modal="true" resizable="false" appendTo="@(body)" header="#{myBundle.CreateVotingsTitle}" closeOnEscape="true">

            <h:form id="VotingsCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2">


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_frage}" for="frage" />
                        <p:inputText id="frage" value="#{votingsController.selected.frage}" title="#{myBundle.CreateVotingsTitle_frage}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_frage}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_created}" for="created" />
                        <p:calendar id="created" pattern="MM/dd/yyyy HH:mm:ss" value="#{votingsController.selected.created}" title="#{myBundle.CreateVotingsTitle_created}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_created}" showOn="button"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer1}" for="answer1" />
                        <p:inputText id="answer1" value="#{votingsController.selected.answer1}" title="#{myBundle.CreateVotingsTitle_answer1}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer1}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers1}" for="answers1" />
                        <p:inputText id="answers1" value="#{votingsController.selected.answers1}" title="#{myBundle.CreateVotingsTitle_answers1}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers1}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer2}" for="answer2" />
                        <p:inputText id="answer2" value="#{votingsController.selected.answer2}" title="#{myBundle.CreateVotingsTitle_answer2}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer2}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers2}" for="answers2" />
                        <p:inputText id="answers2" value="#{votingsController.selected.answers2}" title="#{myBundle.CreateVotingsTitle_answers2}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers2}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer3}" for="answer3" />
                        <p:inputText id="answer3" value="#{votingsController.selected.answer3}" title="#{myBundle.CreateVotingsTitle_answer3}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer3}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers3}" for="answers3" />
                        <p:inputText id="answers3" value="#{votingsController.selected.answers3}" title="#{myBundle.CreateVotingsTitle_answers3}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers3}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer4}" for="answer4" />
                        <p:inputText id="answer4" value="#{votingsController.selected.answer4}" title="#{myBundle.CreateVotingsTitle_answer4}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer4}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers4}" for="answers4" />
                        <p:inputText id="answers4" value="#{votingsController.selected.answers4}" title="#{myBundle.CreateVotingsTitle_answers4}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers4}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer5}" for="answer5" />
                        <p:inputText id="answer5" value="#{votingsController.selected.answer5}" title="#{myBundle.CreateVotingsTitle_answer5}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer5}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers5}" for="answers5" />
                        <p:inputText id="answers5" value="#{votingsController.selected.answers5}" title="#{myBundle.CreateVotingsTitle_answers5}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers5}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer6}" for="answer6" />
                        <p:inputText id="answer6" value="#{votingsController.selected.answer6}" title="#{myBundle.CreateVotingsTitle_answer6}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer6}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers6}" for="answers6" />
                        <p:inputText id="answers6" value="#{votingsController.selected.answers6}" title="#{myBundle.CreateVotingsTitle_answers6}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers6}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer7}" for="answer7" />
                        <p:inputText id="answer7" value="#{votingsController.selected.answer7}" title="#{myBundle.CreateVotingsTitle_answer7}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer7}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers7}" for="answers7" />
                        <p:inputText id="answers7" value="#{votingsController.selected.answers7}" title="#{myBundle.CreateVotingsTitle_answers7}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers7}"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answer8}" for="answer8" />
                        <p:inputText id="answer8" value="#{votingsController.selected.answer8}" title="#{myBundle.CreateVotingsTitle_answer8}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answer8}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateVotingsLabel_answers8}" for="answers8" />
                        <p:inputText id="answers8" value="#{votingsController.selected.answers8}" title="#{myBundle.CreateVotingsTitle_answers8}" required="true" requiredMessage="#{myBundle.CreateVotingsRequiredMessage_answers8}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{votingsController.saveNew}" value="#{myBundle.Save}" update="display,:VotingsListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,VotingsCreateDialog);">
                        <p:confirm header="#{myBundle.ConfirmationHeader}" message="#{myBundle.ConfirmCreateMessage}" icon="ui-icon-alert"/>
                    </p:commandButton>

                    <p:commandButton value="#{myBundle.Cancel}" onclick="VotingsCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
